import java.util.Scanner;

public class Range_1_5_37 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int m, n, x, now_strength = 0;
        m = input.nextInt();
        n = input.nextInt();
        x = input.nextInt();
        while (x > 0) {
            x -= Math.ceil((double) m / n);//先补满体力，此时最大体力m就是当前体力
            if (x >= 0)
                n += m / n;
            if (m < n)
                break;
        }
        System.out.println(n);
    }
}